package com.sssp.repository;

import com.sssp.entities.Employee;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/11/2 10:59
 */
public interface EmployeeRepository extends JpaRepository<Employee, Integer> {
    /**
     * 通过lastName查询是否存在Employee实体
     *
     * @param lastName
     * @return
     */
    Employee getByLastName(String lastName);
}
